<!-- src/views/NotFound.vue -->
<template>
  <div class="not-found">
    <h1>404</h1>
    <p>抱歉，您访问的页面不存在。</p>
    <RouterLink to="/" class="back-btn">返回首页</RouterLink>
  </div>
</template>

<script setup>
import { RouterLink } from 'vue-router'
</script>

<style scoped>
.not-found {
  text-align: center;
  padding: 100px 20px;
  background-color: #f0f2f5;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
h1 {
  font-size: 8rem;
  margin: 0;
  color: #1890ff;
}
p {
  font-size: 1.5rem;
  color: #555;
}
.back-btn {
  margin-top: 30px;
  display: inline-block;
  padding: 10px 20px;
  background-color: #1890ff;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.back-btn:hover {
  background-color: #40a9ff;
}
</style>
